package com.lagou.edu.controller;

import com.lagou.edu.service.VerificationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author bobcheng
 * @date 2020/7/6
 */
@RestController
@Slf4j
public class VerificationController {

    @Autowired
    private VerificationService verificationService;

    @GetMapping("/create/{email}")
    public boolean createAndSend(@PathVariable String email) {
        return verificationService.createAndSend(email);
    }

}
